package com.cycle.community.dao.elasticsearch;

import com.cycle.community.entity.DiscussPost;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * @author lenovo
 * @create 2022/8/18 16:34
 */
@Repository//不是Mapper，Mapper是mybatis专有的，Repository是spring提供的针对dao层的注解
public interface DiscussPostRepository extends ElasticsearchRepository<DiscussPost,Long> {
    //父接口已经定义好对服务器的增删改查
    //数据来源来源于mysql，从mysql取到数据再转存到es里
}
